from rest_framework.pagination import PageNumberPagination


class MyBasePageNumberPagination(PageNumberPagination):
    page_query_param = "page"  # 页码参数
    page_size_query_param = 'page_size'  # 单页数据量
    page_size = 10  # 默认的单页数据量，就是每一页显示5个课程信息
    max_page_size = 100
